<template>
    <div class="discuss-theme">
        <div>
            <span class="title">{{ThemeTitle}}</span>
        </div>
        <div class="box2">
            <div class="box3">
                <div>
                    <img :src="imgUrl[ThemeImgCode]" alt="" width="60px" height="60px" style="border-radius: 50%;">
                </div>
                <div class="name">{{ThemeName}}</div>
            </div>
            <div class="box4">
                <div class="text">{{ThemeContent}}</div>
                <div class="time">
                <span>{{ThemeTime}}</span>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props:{
        ThemeTitle:{
            type : String
        },
        ThemeContent:{
            type : String
        },
        ThemeTime:{
            type : String
        },
        ThemeName:{
            type : String
        },
        ThemeImgCode:{
            type : Number
        }
    },
    data(){
        return {
            imgUrl:['/images/1.jpg','/images/1.jpg','/images/2.jpg','/images/3.jpg','/images/4.jpg','/images/5.jpg','/images/6.jpg']
       }
    },

}
</script>

<style scoped>
    .title{
        width: 80%;
        height: 40px;
        margin: 20px 0;
        margin-left: -20px;
        font-size: 25px;
        color: #18191c;
    }
    .discuss-theme{
        display: flex;
        width: 80vw;
        min-height: 10vh;
        margin: 0 auto;
        flex-direction: column;
        flex-wrap: wrap;
        flex: 0 1 auto;
    }
    .discuss-theme  .box2 div img{
        width: 60px;
        height: 60px;
        border-radius: 30px;
    }
    .discuss-theme .box2 .box3{
        width: 40vw;
        display: flex;
        flex-direction: row;
    }
    .discuss-theme .box2{
        width: 40vw;
        min-height: 150px;
        padding-left: 5px;
        /* display: flex; */
        flex-direction: column;
        align-items: stretch;
        box-sizing: border-box;
        flex-grow: 1;
    }
    .discuss-theme .box2 .box4{
        width: 40vw;
        padding-left: 80px;
        margin-top: -30px;
        flex-grow: 1;
    }
    .discuss-theme .box2 .box3 .name{
        padding-top: 15px;
        padding-left: 20px;
        font-size: 15px;
        color: #7f8388;
    }
    .discuss-theme .box2 .text{
        width: 40vw;
        padding-top: 15px;
    }
    .discuss-theme .box2 .time{
        padding-top: 20px;
        margin-bottom: 10px;
        color: #bec1c6;
    }
    .discuss-theme .box2 .time a{
        padding-left: 16px;
        color: #bec1c6;
        text-decoration: none;
    }
    .discuss-theme .box2 .hr{
        width: 600px;
        padding-left: 25px;
        border-bottom: 1px solid #e3e5e7;
    }
    .replyBox{
        width: 40vw;
        height: auto;
    }
</style>